package com.overseasShopping.Base.DAOImpl;

import java.io.Serializable;
import java.util.List;

import com.overseasShopping.Base.DAO.WalletDAO;
import com.overseasShopping.pojo.Wallet;

public class WalletDAOImpl extends BaseDAOImpl<Wallet> implements WalletDAO{

	public Float getBalance(String userId) {
		String hql="select balance from Wallet where userId=?";
		List list=getHibernateTemplate().find(hql, userId);
		return  (Float) (list.size()>0?list.get(0):null);
	}


	


}
